package com.example.demo.auth;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Rocket
 * @version 10.0.1
 * @date 2021-09-18 3:04 PM
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthTokenAnno {
    boolean required() default true;
    String role() default "";
    String[] roles() default {};
    String[] groups() default {};
    String[] permissions() default {};
}
